package com.lh.common.entity.admin;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lh.common.enums.AfterStatusEnum;
import com.lh.common.enums.IF;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;
/**
 * ovmal_order_after_sale_log:售后记录表
 * @author Administrator 2020-05-09
 */
@TableName("ovmal_order_after_sale_log")
@Alias("orderAfterSaleLog")
@Data
public class OrderAfterSaleLog implements Serializable {
    @ApiModelProperty(value = "")
    @Id
    @Column(name = "id")
    private Long id;

    @ApiModelProperty(value = "售后单号")
    @Column(name = "after_sale_id")
    private String afterSaleId;

    @ApiModelProperty(value = "用户ID")
    @Column(name = "user_id")
    private Long userId;

    @ApiModelProperty(value = "是否是系统用户操作1是2不是")
    @Column(name = "is_sys")
    private IF isSys;

    @ApiModelProperty(value = "系统用户id")
    @Column(name = "sys_user_id")
    private Long sysUserId;

    @ApiModelProperty(value = "售后订单状态：PROCESSING->退款处理中；REFUNDSUCCESS:退款成功；RETURNING:退货处理中；TOWAREHOUSE:退货入库中: REFUNDING:退货退款中,RETURNSUCCESS:退货退款成功,REFUSERETURN:拒绝退货退款失败,REFUSEWAREHOUSE:拒绝入库退款失败,REFUSEREFUND:拒绝退款退款失败，RETURNTIMEOUT：退货超时")
    @Column(name = "old_status")
    private AfterStatusEnum oldStatus;

    @ApiModelProperty(value = "售后订单状态：PROCESSING->退款处理中；REFUNDSUCCESS:退款成功；RETURNING:退货处理中；TOWAREHOUSE:退货入库中: REFUNDING:退货退款中,RETURNSUCCESS:退货退款成功,REFUSERETURN:拒绝退货退款失败,REFUSEWAREHOUSE:拒绝入库退款失败,REFUSEREFUND:拒绝退款退款失败，RETURNTIMEOUT：退货超时")
    @Column(name = "new_status")
    private AfterStatusEnum newStatus;

    @ApiModelProperty(value = "操作")
    @Column(name = "operation")
    private String operation;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "")
    @Column(name = "update_time")
    private Date updateTime;

    @ApiModelProperty(value = "详情")
    @Column(name = "remark")
    private String remark;

    /**
     * ovmal_order_after_sale_log
     */
    private static final long serialVersionUID = 1L;
}
